<template>
  <div class="addedAreasMain">
    <div class="headnavigation">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item>可视化巡区管理</el-breadcrumb-item>
        <el-breadcrumb-item class="currentPage">新增可视化区</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <main class="content">
      <p class="headButton">
        <span>
          <el-button @click="back" type="primary" icon="el-icon-arrow-left">返回</el-button>
        </span>
        <span>
          <button>确认添加</button>
          <button>取消</button>
        </span>
      </p>
      <div class="mapMainBox">
        <div class="leftBox">
          <!-- .gradient 单纯为了渐变色以及阴影 -->
          <div class="gradient">
            <div class="lineName">
              <span>线路名称：</span>
              <input type="text" />
            </div>
            <div class="selectBox lineName">
              <span>所属部门:</span>
              <el-select v-model="s_deparment">
                <el-option v-for="item in arr_deparment" :key="item" :label="item" :value="item"></el-option>
              </el-select>
            </div>
          </div>
        </div>
        <div class="mapBox"></div>
      </div>
    </main>
  </div>
</template>

<script>
export default {
  data() {
    return {
      s_deparment: "",
      arr_deparment: ["1", "2"]
    };
  },
  methods:{
    back() {
      this.$router.replace('visual')
    }
  }
};
</script>

<style lang="scss">
@import "../../assets/sass/patrolArea/addedAreas.scss";
</style>